﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace FixedAssets.Controls.Check
{
    public partial class ShowCheckAll_C : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        private void LoadAll()
        {
            TKFA.BLL.FA_CHECKPLAN bll = new TKFA.BLL.FA_CHECKPLAN();
            //this.C1GridView1.DataSource = AddIdToTable(bll.GetCheckPlanValue());
            //this.C1GridView1.DataBind();
        }
        private DataTable AddIdToTable(DataTable dt)
        {
            DataTable idt = dt.Copy();
            idt.Columns.Add("ID", typeof(int));
            int rowid = 1;
            foreach (DataRow dr in idt.Rows)
            {
                dr["ID"] = rowid;
                rowid++;
            }
            return idt;
        }
    }
}